 #include <unistd.h>
#include "ltdc_lib.h"

int main(int argc, char *argv[])
{
	if(argc < 2)
	{
		printf("Error Usage!\r\n");
		return -1;
	}

	ltdc_init(argv[1]);

	while(1)
	{
		ltdc_clear(0xffffff);
		usleep(100*1000);
		display_line(100, 0, 227, 263, 0xff0000);
		usleep(100*1000);
		display_line(100, 60, 227, 231, 0xff0000);
		usleep(100*1000);
		display_rect(1, 1, 20, 20, 0xff);
		display_rect(799-20, 1, 20, 20, 0xff);
		display_rect(1, 479-20, 20, 20, 0xff);
		display_rect(799-20, 479-20, 20, 20, 0xff);

		sleep(1);
	}

	return 0;
}
